package com.web.exiaodao.remote.service;

import com.web.exiaodao.business.entity.Moments;
import com.web.exiaodao.remote.vo.MomentsVo;
import com.web.webstart.base.service.ApiBaseService;
import com.web.webstart.base.util.result.XaResult;
import com.web.webstart.base.exception.BusinessException;
import org.springframework.data.domain.Pageable;

import java.util.List;
import java.util.Map;


public interface ApiMomentsService extends ApiBaseService<MomentsVo, Moments> {

    /**
     * 查询盆友圈列表
     * @param status
     * @param filterParams 包涵 searchUserId 就值搜索searchUserId的朋友圈；
     * @param pageable
     * @param userId userId用来判断自己是否点赞
     * @return
     * @throws BusinessException
     */
    public XaResult<List<MomentsVo>> findListEQStatusByFilter(
            Integer status, Map<String, Object> filterParams, Pageable pageable, long userId)
            throws BusinessException;

    /**
     * 删除朋友圈
     *
     * @param modelIds
     * @param status
     * @param userId
     * @return
     */
    public XaResult<MomentsVo> deleteWorkGroup(String modelIds,
                                               Integer status, String userId);

}
